package com.zb.zeus.common.core.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;

/**
 * 全局异常处理
 *
 * @author fujianjian
 * @date 2022/8/4 17:14
 **/
public interface ZeusExceptionHandler extends InitializingBean {

    Logger logger = LoggerFactory.getLogger(ZeusExceptionHandler.class);

    @Override
    default void afterPropertiesSet() throws Exception {
        if (logger.isWarnEnabled()) {
            logger.warn("inject Zeus Global exception handler instance success");
        }
    }
}
